package com.justnow.offer;

/**
 * @author justnow
 * Created on 2020-09-22
 * Description
 */
public class Solution65 {
    public int findLengthOfLCIS(int[] nums) {
        if (nums == null || nums.length <= 0) {
            return 0;
        }

        int length = nums.length;
        int left = 0;
        int right = 0;
        int max = 0;
        while (right + 1 < length) {
            if (nums[right] < nums[right + 1]) {
                right++;
                max = Math.max(max, right - left + 1);
            } else {
                left = right + 1;
                right = right + 1;
            }
        }
        return max;
    }
}
